import myaxios from '../axios/loginAxios'
import axios from 'axios'
import { rap2 } from '../axios/loginAxios'
// 获取短信验证码
const getMobileCode = mobileCode => myaxios.get("/getMobileCode?mobile="+ mobileCode)

// 获取用户信息
const getUserInfo = token => myaxios.post("/getUserInfo", token)
// 用户注册
const createUser = data => myaxios.post('/createUser', data )
// 用户登录
const loginCheck = data => myaxios.post('/loginCheck', data )
// 用户退出登录
const logout = data => myaxios.post('/logout', data )

// 获取房源详情信息
const getHouseInfo = () => rap2.get("/example/1611305370688")
// 获取房源详情信息
const getImg = () => axios.get("https://api.muxiaoguo.cn/api/meinvtu?num=5")

export {
  getMobileCode,
  createUser,
  loginCheck,
  logout,
  getUserInfo,
  getHouseInfo,
  getImg
}